package com.wkbb.sports.mapper;

import com.wkbb.sports.dto.StudentOnlineRoomDto;
import com.wkbb.sports.model.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface StudentOnlineMapper {

    int insertOnlineHall(StudentOnlineHall onlineHall);
    int updateOnlineHall(StudentOnlineHall onlineHall);

    int insertOnlineRoom(StudentOnlineRoom onlineRoom);
    int updateOnlineRoom(StudentOnlineRoom onlineRoom);

    StudentOnlineHall findHall(Long studentId);
    Integer getStudentAvgCount(Map<String, Object> params);
    List<StudentOnlineHall> getHallList(StudentOnlineHall onlineHall);

    int insertOnlineRoomRecord(StudentOnlineRoomRecord onlineRoomRecord);
    int insertOnlineRoomStuBatch(@Param("list")List<StudentOnlineRoomStu> list);
    int insertPracticeBatch(@Param("list")List<HlifeStudentPractice> list);

    List<StudentOnlineRoomDto> getHallRoomList();
    void offlineRoom();
    void offlineHall();


}